package com.raos.example.redisexample.dal.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 城市
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2021/7/22 22:01
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class City extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 城市名
     */
    private String name;

    /**
     * 城市编码
     */
    private String countryCode;

    /**
     * 区划
     */
    private String district;

    /**
     * 人口
     */
    private Integer population;


}
